package io.adrainty.demo.seata.storage.models.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>StorageBO</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description StorageBO
 * @since 2025/8/20 13:56:49
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("tab_storage")
public class StorageBO implements Serializable {

    @Serial
    private static final long serialVersionUID = 5937893898049862749L;

    @TableId
    private Long id;

    @TableField("product_id")
    private Long productId;

    @TableField("stock")
    private Long stock;

    @TableField("frozen_stock")
    private Long frozenStock;

    @TableField("sku_id")
    private Long skuId;

    @TableField("price")
    private BigDecimal price;

}
